import React, {Component} from "react";
import './AppIndex.css';
import {Layout, Menu, Breadcrumb} from 'antd';
import Home from "../Component/Home";
import RuYaoSLYCLHXFXBGD from '../Table/RuYaoSLYCLHXFXBGD/RuYaoSLYCLHXFXBGD';
import ChuMoSLYCLHXFXBGD from '../Table/ChuMoSLYCLHXFXBGD/ChuMoSLYCLHXFXBGD';
import KongZhiShiYSJL from '../Table/KongZhiShiYSJL/KongZhiShiYSJL';
import ShengShuYLQFXHZB from '../Table/ShengShuYLQFXHZB/ShengShuYLQFXHZB';
import ZhongKongSSCXTJL from '../Table/ZhongKongSSCXTJL/ZhongKongSSCXTJL';
import ZhongKongSSCXTJLX2 from '../Table/ZhongKongSSCXTJLX2/ZhongKongSSCXTJLX2';
import BiaoZhun from '../Table/BiaoZhun/BiaoZhun';
import ChaKan from '../Table/ChaKan/ChaKan';
import UserManage from '../Table/Manage/UserManage';
import Login from "../Login/Login";
import Registration from '../reg/reg.js';

const { Content} = Layout;


export default class AppIndex extends Component {
    constructor(props) {
        super(props);
        this.state = {
            // choose_num: this.props.choose,
            choose_arr: [
                <Home/>,
                <RuYaoSLYCLHXFXBGD/>,
                <ChuMoSLYCLHXFXBGD/>,
                <KongZhiShiYSJL/>,
                <ShengShuYLQFXHZB/>,
                <ZhongKongSSCXTJL/>,
                <ZhongKongSSCXTJLX2/>,
                <BiaoZhun/>,
                <ChaKan/>,
                <UserManage/>,
                <Login/>,
                <Registration/>,
            ],
        }
    }

    render() {
        return (


            <Layout>
                <Content style={{margin: '0 1% 0 1%', overflow: 'auto', backgroundColor: 'white'}}>
                    {this.state.choose_arr[this.props.choose]}
                </Content>
            </Layout>


        );
    }
}